import { useContext } from 'react'
import MsgContext from '@/context/MsgContext.js'
const useMsg = () => {
  const { messageApi } = useContext(MsgContext)
  return messageApi
}
export default useMsg